package com.recursiveflow.shared.view.shapes 
{    import flash.display.DisplayObjectContainer;    import flash.display.Shape;        /**     * @author alastair     */    public class Background extends Shape 
    {        public function Background(parent : DisplayObjectContainer, w : Number, h : Number, colour : Number = 0x000000, alpha :Number = 1)
        {
            parent.addChild(this);
            draw(w, h, colour, alpha);
            cacheAsBitmap = true;        }

        protected function draw(w : Number, h : Number, colour : Number, alpha : Number) : void
        {
        	graphics.beginFill(colour, alpha);
        	graphics.drawRect(0, 0, w, h);
        	graphics.endFill();
        }
    }}